-#
-# Recent Articles
-#

.module
  #recent_articles
    %h1 Recent Articles
    - count = 1
    %ul
      - for post in Post.find(:all, :limit => 10, :order => "published_at DESC", :conditions => ["published = true and published_at < ?", Time.now])
        %li
          = link_to post.title, post
        - count += 1
        - break if count > 6